package com.sy.service.impl;

import com.sy.service.TPService;
import org.apache.dubbo.config.annotation.DubboService;

/**
 * @author songyi
 * @className TPServiceImpl
 * @description TODO
 * @date 2020/8/17 0017 16:52
 */
@DubboService(group = "dubbo")
public class TPServiceImpl implements TPService {
    @Override
    public void methodA() {
        try {
            Thread.sleep((long) (Math.random() * 100));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

    @Override
    public void methodB() {
        try {
            Thread.sleep((long) (Math.random() * 100));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

    @Override
    public void methodC() {
        try {
            Thread.sleep((long) (Math.random() * 100));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
